﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace BoldBrick.Web.Parameters
{
    /// <summary>
    /// Holds information about a parameter extracted from a page info data type.
    /// </summary>
    class QueryParameter
    {
        /// <summary>
        /// Property on data type used for reflection.
        /// </summary>
        public PropertyInfo FieldInfo { get; set; }

        /// <summary>
        /// Name of parameter in query string.
        /// </summary>
        public string ParamName { get; set; }

        /// <summary>
        /// Indicates whether the parameter is required.
        /// </summary>
        public bool IsRequired { get; set; }

        /// <summary>
        /// Format for the string representation of value in query.
        /// </summary>
        public string DataFormatString { get; set; }
    }
}
